Sprite.Group

Determines whether or not the SpriteSurface control's Collision event handler will be called when the Sprite comes in to contact with another Sprite. Sprites with a negative Group value will collide with any other Sprites (except those with a Group value of 0).

Syntax

Group( Integer ) as


Parameters

Integer


Notes

A Group value of 0 means the Sprite will not collide with any other Sprites. A positive Group value means that the Sprite will collide with Sprites of any other Group value (except 0) but not those with the same Group value.